﻿@model IEnumerable<File_Manager.Models.User_I>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            name
        </th>
        <th>
            last_name
        </th>
        <th>
            phone
        </th>
        <th>
            career
        </th>
        <th>
            zone
        </th>
        <th>
            school
        </th>
        <th>
            parent_name
        </th>
        <th>
            parent_last_name
        </th>
        <th>
            parent_cedula
        </th>
        <th>
            parent_phone
        </th>
        <th>
            parent_email
        </th>
        <th>
            n_cuotas_pago
        </th>
        <th>
            n_transaction
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.last_name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.phone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.career)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.zone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.school)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.parent_name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.parent_last_name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.parent_cedula)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.parent_phone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.parent_email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.n_cuotas_pago)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.n_transaction)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.UserName }) |
            @Html.ActionLink("Details", "Details", new { id=item.UserName }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.UserName })
        </td>
    </tr>
}

</table>
